package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

@Mapper
public interface OrderMapper {
    /**
     * 查找所有预约
     * @return
     */
    @Select("select  * from t_order")
    List<Order> findPage();

    /**
     * 修改预约状态
     * @param order
     * @return
     */
    @Update("UPDATE t_order set orderStatus = #{orderStatus} where id=#{id}")
    boolean edit(Order order);
}
